import request from '@/utils/request'

// 查询库存盘点单据详情列表
export function listCheckDetail(query) {
  return request({
    url: '/wms/CheckDetail/list',
    method: 'get',
    params: query
  })
}

// 查询库存盘点单据详情详细
export function getCheckDetail(id) {
  return request({
    url: '/wms/CheckDetail/' + id,
    method: 'get'
  })
}

// 新增库存盘点单据详情
export function addCheckDetail(data) {
  return request({
    url: '/wms/CheckDetail',
    method: 'post',
    data: data
  })
}

// 修改库存盘点单据详情
export function updateCheckDetail(data) {
  return request({
    url: '/wms/CheckDetail',
    method: 'put',
    data: data
  })
}

// 删除库存盘点单据详情
export function delCheckDetail(id) {
  return request({
    url: '/wms/CheckDetail/' + id,
    method: 'delete'
  })
}

/**
* 查询库存盘点详情列表DetailsList
*/
export function DetailsList(no) {
  return request({
    url: '/wms/CheckDetail/selectInfo/' + no,
    method: 'get'
  })
}